package juez

class Problem {
    String title
    Integer memoryLimit
    Integer timeLimit
    Integer stackLimit
    Integer numTest
    String statement
   
    String toString(){
        "title: ${title} id: ${id}"
    }
    
    static hasMany=[solutions:Submition]
    static belongsTo=[contest:Competition]
 

    static constraints = {
        title(blank:false)
        memoryLimit(min: 0)
        timeLimit(min: 0)
        stackLimit(min: 0)
        numTest(min: 0)
        statement(blank:false)
    }
}
